using System;
using System.Collections.Generic;
using System.Text;

namespace NetSpider.Retrieval.Policies
{
    public class RetrievalPolicyFactory : IRetrievalPolicyFactory
    {
        public RetrievalPolicy CreateFor(string uriSchema)
        {
            if (uriSchema == "http" || uriSchema == "https")
            {
                return new HttpRetrievalPolicy();
            }

            throw new UriSchemaNotSupportedException(uriSchema);
        }
    }
}
